package com.haiyan.demo.problem01;

public class Tecaher extends Person {
    public Tecaher() {
    }

    public Tecaher(String name, String sex, int age) {
        super(name, sex, age);
    }

    public void work()
    {
        System.out.println(super.getName()+"教Java");
    }
}
